#ifndef __FLASHWRITE_H_
#define __FLASHWRITE_H_

#define USERCODEADDRESS 0X3F00
#define	FRSTATUSADDRESS	0X3E80

typedef struct
{
    uint8 x5a;
    uint8 x1f;
}FlashSecurityKey;

extern FlashSecurityKey data FlashKey;
extern uint8 MotorStatusSaveOnce;

extern void UserCodeDeal(void);
extern void MotorStatusSave(void);
extern void MotorStatusRead(void);

#endif

